package com.xiaoming.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "sc-service-mail", fallback = LogService.class, path = "/mail")
public interface EmailService {
    @GetMapping("/{email}/{content}")
    boolean sendMail(@PathVariable("email") String email, @PathVariable("content") String content) throws Exception;
}
